async function _writeTag({ fs, gitdir, tag }) {
  // Convert object to buffer
  const object = GitAnnotatedTag.from(tag).toObject()
  const oid = await writeObject({
    fs,
    gitdir,
    type: 'tag',
    object,
    format: 'content',
  })
  return oid
}
@param {object} args
@param {import('../models/FileSystem.js').FileSystem} args.fs
@param {string} args.gitdir
@param {TagObject} args.tag

@returns {Promise<string>}