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