how to import typescript file in a javascript file code example Example: how to run typescript file npx ts-node src/foo.ts