You are correct, LA Law and ST:TNG both ended in 1994, and Pulaski’s arc on TNG was before her LA Law stint (I almost typed “stink”).
I was not implying causality, or temporality, or even sequentiality ... merely that her character brightened both shows by leaving.