code: function closeLiveBrowser(pid) {
          var result = new $.Deferred();
  
          if (isNaN(pid)) {
              pid = 0;
          }
          brackets.app.closeLiveBrowser(function (err) {
              if (!err) {
                  var i = liveBrowserOpenedPIDs.indexOf(pid);
                  if (i !== -1) {
                      liveBrowserOpenedPIDs.splice(i, 1);
                  }
                  result.resolve();
              } else {
                  result.reject(_browserErrToFileError(err));
              }
          }, pid);
  
          return result.promise();
      }
docs: closeLiveBrowser
  
  @return {$.Promise}