From Ether6, https://docs.ethers.org/v6/api/utils/#formatEther
You can just use it this way.
const { ethers, formatEther } = require("ethers"); or ethers.formatEther(value);