handlePreviews = async (remote, remoteDatabase, storageDir) => {
  const previewFiles = getPreviewFiles(remoteDatabase, storageDir)
  let filesToDownload = previewFiles
  if (!remote.forceDownload) {
    filesToDownload = await collectMissingPreviewFiles(previewFiles, storageDir)
  }
  await downloadPreviewFiles(remote, filesToDownload, storageDir)
}
@param {import('./types.js').Remote} remote
@param {import('./types.js').RemoteDatabase} remoteDatabase
@param {string} storageDir