twoslash ^? for any language
just write a line comment with ^? and it'll add an inlay hint with the hover text of the token above.
const fn = () => "result" as const;
const _ = fn();
// ^? const _: "result"def fn():
return 'result'
___ = fn()
# ^? (variable) ___: Literal['result']