Can you write a solution for TS users? I still run into issues where the "Configuration property ... is not defined". I am doing a similar setup but am using .ts and .cts files (I assume are the TS file extension equivalents). I am beginning to use ESM to modernize my codebase practices when using Node.js with TypeScript for my personal projects.