There are multiple ways to setup the environment for TypeScript.
I will be using Visual Studio Code to create applications using TypeScript.
Download and install Node.js as per your system configuration.
Open Node.js command prompt. Use it to install TypeScript.
If you get any error while using below command, verify whether you have installed Node.js crrectly or not. Use node -v command to get the version number of Node.js and to verify the successful installation of Node.js.

Download and install Visual Studio Code as per your system configuration.