pub fn close_thread(ctx: Context<'_, '_, '_, '_, ThreadClose<'_>>) -> Result<()>Expand description
Closes an existing thread account and returns the lamports to the owner. Requires authority (owner) or thread itself to sign. External fiber accounts should be passed via remaining_accounts.