import { sendTransaction } from "thirdweb";
import { castVoteWithReasonAndParams } from "thirdweb/extensions/vote";
 
const transaction = castVoteWithReasonAndParams({
 contract,
 proposalId: ...,
 support: ...,
 reason: ...,
 params: ...,
 overrides: {
   ...
 }
});
 
// Send the transaction
await sendTransaction({ transaction, account });