we talked about it way earlier in this thread.
They are swords. Space swords, but just swords. The blaster (ie guns) have obsoleted them in almost all scenarios. Jedi's still use them, almost ceremoniously rather than for function, but they can get by with only using saber's because they have the force.
Weak jedi can funnel the force into their swordsmanship skills to deflect blaster bolts, and fall back on using a blaster as well when needed (like luke did with his bare minimal training,and like all the jedi did in the prequels because lucas is terrible). Stronger Jedi like Vader or Kylo can just deflect blaster shots (or fucking freeze them in space like Kylo) using the force alone. Masters of the force like Yoda or Emperor don't even need sabers at all, they are strong enough in the force to not need weapons.