import type { Wallet } from 'ethers'; import hre from 'hardhat'; export async function getSigners(): Promise { // @ts-ignore Hardhat type overrides from @nomiclabs/hardhat-ethers don't work return hre.ethers.getSigners(); } export async function getSigner(): Promise { const [signer] = await getSigners(); return signer; }