The requirement for closing duplicate tabs

In my daily work, I often have to open a dozen or so tabs, but inevitably, there are two or three duplicates. However, with so many tabs open, I tend to get lazy about distinguishing them. It would be great if there was a feature or button to close duplicate tabs. Interestingly, although I can achieve this functionality through scripting, I don't think my method is very efficient. It would be much better if the official version could provide this feature directly, making it more convenient to operate.

This might be of interest :

Thanks for your reply, but what I need is a manual button to close duplicate tabs, not an automatic one. This type of automatic closure can sometimes be a headache because sometimes duplicate tabs are really needed.

I've added an on-demand version to DeDuplicateTabs: Auto-close duplicate tabs when new windows open at the bottom of the first post.

Here is another Tab Deduplication script.
Tabs deduplication command with current path protection and bothsidesism