Hello where could I find the types rankings compared to each other to know the best types? Like Water being better than Rock etc
There really isnt "any" thats official because its meta dependent and really varies per person.
For me tho, I would rank it like this:
S tier: Very strong types that will always be good picks and are well rounded. Do note that since its monotype, you will get hard counters. However, the viability of the counters is taken into account too (i.e. sure Ice bones non double Steel flying but how often will you run into Ice?) Shoutout to Dragon, since its technically broken in the sense that all its weaknesses are covered super well (exceptions being M.Lop/M.Gal/MixVal, but thats 2 mons out of the entire meta). Steel is more of a balance type, but hazard stack + great natural defensive profile goes a long way to it being op.
A tier: Types that have some weakness to one of the three top types, but will generally still be good to the rest of the types (Fairy -> Steel (unless you're able to pull off excellent predictions/use Azumarill/Clefable), Water -> Dragon (Kyurem.), Electric -> Dragon (Mega Lati@s + Steel Dragon core is annyoying). Take note that I could be biased, as all these 3 are typically ran offensively, tho if you ask me the type thats "balanced" that could be A is Normal (Pory2/Bliss core is strong), but is held back by being a skill based type rather than actually pummeling opponents
B tier: Still hold up well but have multiple problem mons/types to take note of that makes them a bit shakier than usual compared to A tier. Normal/Poison/Psychic are Balanced types with good defensive walls, but crumble to certain things [Hands/Archaludon/Kommo-o for Normal, Mega Latios/Mega Gallade for Poison, Roaring Moon/Electric teams/Gholdengo for Psychic]. Ground is still a strong weather offense type but suffers from too many things having Ice coverage + Water/M.Zard Fly/Kyurem being strong, Dark has to deal with Lele/Keldeo/Iron Hands/Enamorus, Screens Psychic is a hit or miss.
C tier: Technically viable but is held back by its shaky mu into much more types than B. Funnily all of these but grass are offense types, which crumble if the opponent doesnt die first. Grass is a great cteam into fairy, but gets mauled by the top 3.
D tier: Barely serviceable types that do have good matchups, but are outweighed by how common their counters are. For example, Fire would be amazing but you would likely go against Ground/Water/Dragon teams nearly 50% of the time while not being able to outright win vs less common stuff like Flying/Poison/Normal. Fighting has to deal with Tapu Lele (Fairy/Psychic), Meowscarada (Dark), Enamorus (Flying), and M.Alt (Dragon), outweighing the benefits of being good into Steel/Water/Ground/Normal.
Hope this helped