code: async function injectLocal(def) {
    debug(`checking ${def.base} for firefox`);
    if (def.base.toLowerCase().includes('firefox')) {
      debug('def is a firefox def');
      const platform = platformToShortName(os.platform());
  
      debug(`injecting ${platform} profile into ${def.base}`);
      const dest = await prepareLocalProfile(platform);
  
      def.profile = dest;
      debug(`injected ${dest} profile into ${def.base}`);
    }
  }
docs: Injects a the path of a firefox profile directory into a local browser definition
  @param {Object} def