import { getProposalVoteCounts } from "thirdweb/extensions/vote";
 
const data = await getProposalVoteCounts({ contract, proposalId });
 
// Example result
{
  for: 12000000000000000000n, // 12 tokens (with a decimals of 18) were used to vote "for"
  against: 7000000000000000000n, // 7 tokens (with a decimals of 18) were used to vote "against"
  abstain: 0n, // no user has voted abstain on this proposal
}