lib, tools: remove duplicate requires
Blocked by #54892
Updates the eslint rule to check if a require in a function is already defined at the top-level.
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data
Blocked by #54892
Updates the eslint rule to check if a require in a function is already defined at the top-level.