Initialize NodeJS Project
npm init -y
Install TS
npm i typescript
Initialize TS
tsc --init
Now we will have 2 files package.json & tsconfig.json
package.json
tsconfig.json
Create a TS file
Compile TS file to JS
tsc -b