Adopt TS as official browser language and kill JS. Since JS is valid TS, it will be literally a drop in replacement. Easy peasy.