As you can tell I'm using aliased imports everywhere in my project. But I need to be able to import functions. If not for like the above (that's just the prisma client, which I could instantiate directly within my script), at least so that I don't have to rewrite some of the logic I need that already exists somewhere in the project.
I've had this problem many times before and never quite found a good solution for it. It's always involved copy/pasting stuff into .mjs files and stripping the types and that's really ugly.