$ npm install -g typescript
$ tsc generator.ts
This command will generate a JavaScript file with the same name of input TypeScript file.
[1] Frank Jheng, "Yet Another Chatbot", May. 07, 2019. [Online]. Available: https://gist.github.com/M157q/631b10a0331613589e2fae86a2b9ddcf. [Accessed: May. 07, 2019].