Using // ^? you can pull out type information about a particular identifier in the line of code above it.
// ^?
const const hi: "Hello"hi = 'Hello'const msg = `${const hi: "Hello"hi}, world`const msg: "Hello, world"
const hi: "Hello"
const msg: "Hello, world"
```ts twoslashconst hi = 'Hello'const msg = `${hi}, world`// ^?```