install.js
function fixRefFile() {
    var existingRef='', refFile = '../../references.d.ts';
    if (fs.existsSync(refFile)) {
        existingRef = fs.readFileSync(refFile).toString();
    }

  if (existingRef.indexOf('typescript/lib/lib.d.ts') === -1) {
    // has not been previously modified
    var fix = '/// <reference path="./node_modules/tns-core-modules/tns-core-modules.d.ts" />\n' +
      '/// <reference path="./node_modules/typescript/lib/lib.d.ts" />\n';


    fs.writeFileSync(refFile, fix, 'utf8');
  }
}
function fixRefFile() {
    var existingRef='', refFile = '../../references.d.ts';
    if (fs.existsSync(refFile)) {
        existingRef = fs.readFileSync(refFile).toString();
    }

  if (existingRef.indexOf('typescript/lib/lib.d.ts') === -1) {
    // has not been previously modified
    var fix = '/// <reference path="./node_modules/tns-core-modules/tns-core-modules.d.ts" />\n' +
      '/// <reference path="./node_modules/typescript/lib/lib.d.ts" />\n';


    fs.writeFileSync(refFile, fix, 'utf8');
  }
}
This fixes the references file to work with TS 2.0 in the nativescript folder