Wie der Name Typescript schon sagt handelt es sich dabei um eine Typsichere sprache.

tsc –version
check version of typescript

sudo npm install -g typescript
installs typscript

tsc –init
creates tsconfig.json (do it inside a new folder)
https://www.meziantou.net/starting-a-typescript-project-with-visual-studio-code.htm

tsc main.ts
generates then main.js

node main.js
starts main.js

“preLaunchTask”: “tsc: build - tsconfig.json”,
inside launch.json at vscode to prepare debugging typescript
https://code.visualstudio.com/docs/typescript/typescript-debugging