import { sendTransaction } from "thirdweb";
import { createPack } from "thirdweb/extensions/erc1155";
 
const transaction = createPack({
 contract,
 contents: ...,
 numOfRewardUnits: ...,
 packUri: ...,
 openStartTimestamp: ...,
 amountDistributedPerOpen: ...,
 recipient: ...,
 overrides: {
   ...
 }
});
 
// Send the transaction
await sendTransaction({ transaction, account });