const MyContract = await ethers.getContractFactory("MyContract");
const contract = await MyContract.attach(
  "0x..." // The deployed contract address
);

// Now you can call functions of the contract
await contract.doTheThing();

https://ethereum.stackexchange.com/questions/95023/hardhat-how-to-interact-with-a-deployed-contract