Build d.ts for target
Simple version for now since we just want a prototype, but easy to add list of packages to include / from share link support / etc if we want.
Should look at stripping it so hidden / deprecated apis etc are removed as well, but spent too long staring at this before realizing my local arcade build was just very broken so need to look at other stuff that's more useful for now, basically just stashing this here.
it outputs to separate d.ts files but also combines them into a 'combined.d.ts' at the end. This doesn't kick off a build or anything so need to have served first (which does mean it only takes about a second to run
(could also go from program -> more full d.ts emitter, but this seems to work fine for what we want at least?)