Same ownership, same management, same players? Then yes, it’s the same franchise, and accordingly, those titles belong to that franchise. The city of LA doesn’t own those titles, but the Lakers franchise does.
My opinion only, but I feel like Boston fans seem incredibly insecure when they try to take away the Lakers titles from Minneapolis.