import { sendTransaction } from "thirdweb";
import { approve } from "thirdweb/extensions/erc721";
 
const transaction = approve({
 contract,
 to: ...,
 tokenId: ...,
 overrides: {
   ...
 }
});
 
// Send the transaction
await sendTransaction({ transaction, account });