I am glad it was short for you, but it varies in general. For some people it doesn't take long. For others, it takes longer. For some, reconnection occurs so it is important to check again 1 year after the vasectomy.
15-20 ejaculations typically clear any remaining sperm, but again none of this is universal and it needs to be tested.
Erroring on the side of avoiding a pregnancy is a win in my book ๐