Using getThirdPartySetting() to get node type configurations in other hooks
$bundle is the node type (ID), so you can load the node type based on that.

$node_type = \Drupal\node\Entity\NodeType::load($bundle);