How to hide a woocommerce setting tab from admin & shop manager?

If you want to hide for specific users, just change the if statement. eg

if( in_array( $user->ID, [LIST_OF_USER_IDS] ) ) {
    ...
}