Typescript has two main parts; one is the Typescript language and its superset of JavaScript. It brings OOP and modern app developing paradigm support to JavaScript.
The other part of Typescript is the Typescript transpiler. The transpiler analyzes and converts Typescript code into its JavaScript equivalent.
After all, the browser can only execute JavaScript code, so Typescript code has to be converted to JavaScript.