To run TypeScript code, you’ll need to have a TypeScript compiler installed. Here’s a general process to run TypeScript code:
.ts
app.ts
tsc app.ts
node app.js
Learn more from the following link: