Add js depend jQuery in a specific content type
Checkout https://www.drupal.org/docs/8/creating-custom-modules/adding-stylesheets-css-and-javascript-js-to-a-drupal-8-module especially section Attaching a library in a twig template

See also lib/Drupal/Core/Render/theme.api.php where the library is like $build['#attached']['library'][] = 'core/jquery';

{{ attach_library('core/jquery') }}