I was secretly hoping someone would respond with an insult and the correct way to do Opaque Types in TypeScript, but sadly no such luck.
I took a look and found that it is possible to do something similar here (albeit with more heavy lifting)
https://www.ferreira.io/posts/opaque-branded-types-in-typesc...