Commissioner Tisch, the current head of the New York Police Department, said she had agreed to serve in Mayor-elect Zohran Mamdani’s administration.