What TypeScript is
JavaScript with a type checker on top. You write what a value is meant to be — a number, a customer, a list of orders — and the compiler tells you before you ship where the code disagrees with itself. It compiles to ordinary JavaScript, so the browser never sees TypeScript and there's no runtime cost.
