import { createSessionKey } from "thirdweb/wallets/in-app";
import { sendTransaction } from "thirdweb";
 
const transaction = createSessionKey({
  account: account,
  contract: accountContract,
  sessionKeyAddress: TEST_ACCOUNT_A.address,
  durationInSeconds: 86400, // 1 day
  grantFullPermissions: true,
});
 
await sendTransaction({ transaction, account });