async function writeJsonFile(filename, data) {
  await fs.writeFile(filename, JSON.stringify(data, null, 2), 'utf-8')
}
Writes data to a JSON file.
@param {string} filename - The file to write to.
@param {any} data - The data to write.