Node 22.6 and newer strip the types and run the file:
node --experimental-strip-types script.ts
From Node 23.6 the flag isn't needed; node script.ts just works. It only strips types, so enums, namespaces and parameter properties (constructor(private x: number)) are rejected unless you add --experimental-transform-types.
Imports need the extension, and you write .ts, not .js:
import { helper } from './helper.ts'
For older Node versions, npx tsx script.ts does the same job.