Bug 1871127 - Add tsconfig, basic types, and fix or ignore remaining type errors...