Unity Packages screen stuck

Unity packages screen doesn’t have a close button

Are you talking about the Package Manager window? if you are then you should just be able to right click on the “Package Manager” tab, and select close tab.