This is a small tutorial I made showing step by step how to use Hardhats Typechain plugin to generate Typescript Contract Bindings and apply it to a simple deploy script, with a basic ERC721 contract as the example contract.
make deploy
npm i --save-dev @nomicfoundation/hardhat-toolbox
@openzeppelin/contracts
@typechain/ethers-v5
@typechain/hardhat
@types/node
ethers
hardhat
ts-node
typechain
typescript
mkdir contracts
npx hardhat init
Choose the option "Create an empty hardhat.config.js"
mv hardhat.config.js hardhat.config.ts
Next replace all the contents inside hardhat.config.ts with hardhat configuration for typescript found in the Hardhat Docs: https://hardhat.org/hardhat-runner/docs/guides/typescript
npx hardhat compile