import { grantRole } from "thirdweb/extensions/permissions";
import { sendTransaction } from "thirdweb";
 
const transaction = grantRole({
  contract,
  role: "admin",
  targetAccountAddress: "0x1234567890123456789012345678901234567890",
});
 
await sendTransaction({ transaction, account });