Install:npm install -g typescript.

For React: use.tsx(since 1.6).

Large codebases:

Docs:

Installing typings (obsolete in favor of npm @types/foo):