code: function close (vexOrId) {
      var id
      if (vexOrId.id) {
        id = vexOrId.id
      } else if (typeof vexOrId === 'string') {
        id = vexOrId
      } else {
        throw new TypeError('close requires a vex object or id string')
      }
      if (!vexes[id]) {
        return false
      }
      return vexes[id].close()
    }
docs: A top-level vex.close function to close dialogs by reference or id