Angular 2 Ahead-of-Time (aot ngc) Cannot find name 'Windows'

Just tried building my app, but I’m running into issues with the Angular 2 ngc aot compiler. Seems like it doesn’t recognize my global “Windows” variable. How do you work around this sort of issue?

Managed to solve this issue. Needed to install the typings for winrt, like so

npm install @typings/winrt --save-dev

I also had to manually edit the winrt.d.ts file to add the missing Windows 10 anniversary API’s