pub fn withdraw_thread( ctx: Context<'_, ThreadWithdraw<'_>>, amount: u64, ) -> Result<()>
Allows an owner to withdraw from a thread’s lamport balance.