npm install -g typescript
Then use it to compile source .ts file into pure .js version, like
In real application you rather use some engine (e.g., gulp, grunt) to make compilation ts-2-js process as a stage of whole build, or even configure watcher to re-compile fresh version on changes in .ts files. That’s standard approach for any modern Web Development team.
Benefits of static typing