First of all, we need to install node.js for running TypeScript code

npm install typescript 

Awesome, Your TypeScript playground is ready now. Next you may setup "tsconfig.json" for complier options. Read more here

See source code in GitHub