Drupal - How do I get the node type label from a node object?
The following code works, as pointed out from @Clive.
$type_name = $node->type->entity->label();
In case you need the node type machine name in Twig template:
{{ node.getType }}
If you want the label in twig
{{ node.type.entity.label }}