@Shafaaf Hossain - Currently there is no option to close the meeting sidepanel programmatically.
Could you please raise a user voice here:
https://microsoftteams.uservoice.com/forums/555103-public/filters/new
Thanks,
Sayali
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link.