Here is a nice short Python script that will get the job done and uses Bitwarden’s CLI to do it!
Regarding adding this as a feature, my recommendation is to add a ‘deduplicate’ command to the CLI.