assign the returned value of wordpress function to a variable?

You need to set the echo parameter to false. The function defaults to echoing the output rather than returning it.

$wplist = wp_list_categories(
    array(
        'taxonomy'   => 'ntp_package_type',
        'pad_counts' => 0,
        'title_li'   => '',
        'echo'       => false
    )
);

techhipbettruvabetnorabahisbahis forumutaraftarium24edueduseduedueduedueduedueduedus