Install typescript, To install TypeScript, you can run the following command in your terminal, This will install the latest version of TypeScript globally on your computer. (You can skip this if you already have typescript installed)
npminstall-gtypescript
Compile your TypeScript code to JavaScript by running the following command:
tsc
Once the build is complete it will generated a folder named build that contains compiled version of your ts code to js. You can run the following command in your terminal to run the project: