declare var nw: any; //so nw is known to typescript declare var chrome: any; //so nw is known to typescript