docs: async function checkNewVersion() {
      try {
          const file = path.join(constants.GLOBAL_DIR, constants.GLOBAL_INFO);
  
          // If it does not exist, create it.
          if (!fs.existsSync(file)) {
              createFile({
                  name: file,
                  source: `{"lastCheckForUpdate": 0}\n`,
              });
          }
  
          // Read info file
          const json = fs.readJsonSync(file, 'utf8');
          const lastCheckForUpdate = json.lastCheckForUpdate;
  
          // Show update message
          if (lastCheckForUpdate + (6 * 3600 * 1000) < Date.now()) {
              const latestVersion = await request(`${constants.FIREBASE_DATABASE_URL}/version/cli/latest.json`);
              if (latestVersion && latestVersion !== 'null' && latestVersion !== `"${pjson.version}"`) {
                  const scale = pjson.version.length + latestVersion.length - 10;
  
                  console.log();
                  console.log(`${`   ┏`.yellow}${`─`.repeat(scale + 45).yellow}${`┓`.yellow}`);
                  console.log(`${`   │`.yellow}${` `.repeat(scale + 45)}${`│`.yellow}`);
                  console.log(`${`   │`.yellow}${`      Update available ${pjson.version} -> `}${`${latestVersion}`.green}${`        │`.yellow}`);
                  console.log(`${`   │`.yellow}${`  Run `}${`npm i -g google-apps-script`.red}${` to update`}${` `.repeat(scale + 2)}${`│`.yellow}`);
                  console.log(`${`   │`.yellow}${` `.repeat(scale + 45)}${`│`.yellow}`);
                  console.log(`${`   ┗`.yellow}${`─`.repeat(scale + 45).yellow}${`┛`.yellow}`);
                  console.log();
              }
  
              // Update lastCheckForUpdate
              json.lastCheckForUpdate = Date.now();
              createFile({
                  name: file,
                  source: JSON.stringify(json),
              });
              return true;
          }
          return false;
      } catch (err) {
          err.origin = 'checkNewVersion';
          await error.log(err);
          return false;
      }
  }