build: specify explicit typeroots for ts builds (#40595)
Upstreaming of https://github.com/discord/electron/commit/bf63336f6065e6654f4c315cab2b3c7921145173
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Samuel Attard <[email protected]>