diff --git a/node-webkit/node-webkit-tests.ts b/node-webkit/node-webkit-tests.ts
index da10f2901..fab532d36 100644
--- a/node-webkit/node-webkit-tests.ts
+++ b/node-webkit/node-webkit-tests.ts
@@ -1,7 +1,9 @@
///
///
+
// Load native UI library
-var gui: typeof nw.gui;
+// See docs: https://github.com/rogerwang/node-webkit/wiki/Shell
+import gui = require("nw.gui");
/* WINDOW */