function safeRequire(...moduleNames) {
  for (const moduleName of moduleNames) {
    try {
      return require(moduleName);
    } catch (_err) {
      // Ignore.
    }
  }
  return null;
}
Imports a specific module.
@param {...string} moduleNames - module names to import.
@returns {object|null} The imported object, or null.