A small retractable cable tidy for headphone/earphone wires. Once setup, simply pull the wires to extend the length, and rotate the tidy to retract.
Just scale the object to an appropriate size of the headphone wire. It's a simple design so no special settings required.
After printing a little bit of sanding may be needed to help the parts fit together.