You should use TypeScript when you have a large codebase, if a library or framework recommends the language, for efficiency, or if you are looking for a suitable replacement for Babel.