To convert this type of ABI used in Ethers.js
const humanReadableAbi = [
// hasClaimed mapping
"function hasClaimed(address) public view returns (bool)",
// Claim function
"function claim(address to, uint256 numberTokens, bytes32[] calldata proof) external",
];
you need to use new Interface and convert it like this
const iface = new Interface(humanReadableAbi);
let jsonAbi: any = iface.format(FormatTypes.json);
console.log(JSON.stringify(JSON.parse(jsonAbi), null, 2));