1. Initialize NodeJS Project

    npm init -y
    
  2. Install TS

    npm i typescript
    
  3. Initialize TS

    tsc --init
    
  4. Now we will have 2 files package.json & tsconfig.json

  5. Create a TS file

  6. Compile TS file to JS

    tsc -b