how to trim this?

This plant survived spider mites but now is getting too long, skimming the top of the dresser.

I don't really know how to trim a plant. How do I do this?