Auto Import Typescript Libraries to top of the file

This feels like a first world problem…

But I would love auto import of typescript functions at the top of the file. The slowest part of my workflow is manually importing everything after accepting changes to cursor’s implementation.

Any potential solutions here?