function fillInFileDetails(files) {
  Object.entries(files).forEach(([file, fileObj]) => {
    fileObj.file = fileObj.file || file
    if (path.extname(file) === '.js') {
      // parse as LavamoatModuleRecord
      fileObj.specifier = fileObj.file || file
      fileObj.type = fileObj.type || 'js'
      fileObj.entry = Boolean(fileObj.entry)
    }
  })
  return files
}
@param {Record<string, import('./scenario').ScenarioFile>} files
@returns